﻿using System.Windows.Navigation;
using Microsoft.Phone.Controls;

namespace YAPIExample
{
    public partial class Play : PhoneApplicationPage
    {
        public Play()
        {
            InitializeComponent();
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            mainVideo.Children.Add(new YAPI.MediaPlayer());
        }
    }
}